package nl.jtetris.mm;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.*;

public class TetrisFrame extends JFrame{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7172208447018726494L;
	public static final int APP_WIDTH = 500;
	public static final int APP_HEIGHT = 650;
	
	public TetrisFrame()
		
	{

	// set centering of frame
	
	Toolkit kit = Toolkit.getDefaultToolkit();
	Dimension screenSize = kit.getScreenSize();
	int screenHeight = screenSize.height;
	int screenWidth = screenSize.width;
	setSize(APP_WIDTH,APP_HEIGHT);
	setLocation(screenWidth/2 - APP_WIDTH/2, screenHeight/2 - APP_HEIGHT/2);	
	
	// Game controll panel
	//GameControllPanel gamecontroll = new GameControllPanel();
	
	// game panel
	GamePanel gamepanel = new GamePanel(200,100);
	add(gamepanel);
	gamepanel.setVisible(true);
	}
}
